module.exports = function beersong(number){
    let result = "";
    for(; number>=0; number--){
        if(number == 1){
            result += `${number} bottles of beer on the wall, ${number} bottles of beer.
Take one down and pass it around, no more bottles of beer on the wall.\n`
        }else if(number == 0){
            result +=`No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.`;
        }else{
            result += `${number} bottles of beer on the wall, ${number} bottles of beer.
Take one down and pass it around, ${number-1} bottles of beer on the wall.\n`;
        }
     }
    return result;
}